package com.zlll.winner.business.service.bbs;

import com.alibaba.fastjson.JSONObject;
import com.zlll.winner.business.model.bbs.BbsUserActionLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 论坛用户点赞转发操作记录表 服务类
 * </p>
 *
 * @author Walert
 * @since 2019-09-12
 */
public interface IBbsUserActionLogService extends IService<BbsUserActionLog> {
    /**
     * 保存用户操作日志
     * @param params
     * @return
     */
    Object saveLog(JSONObject params) throws InterruptedException;

    /**
     *
     * @param bizId
     * @param bizType
     * @param userId
     * @param actionType
     * @return
     */
    List<BbsUserActionLog> getBbsUserActionLogs(Long bizId, Integer bizType, Long userId,Integer actionType);

    /**
     *
     * @param params
     * @return
     */
    Object getLogByUserId(JSONObject params);
}
